package b;

public class Business {

	private IDeviceWriter writer;//null

//	public void setWriter(IDeviceWriter writer) {//Type2 IoC
//		this.writer = writer;
//	}
	
	public Business(IDeviceWriter writer) {//Type3 IoC
		super();
		this.writer = writer;
	}
	
	public void save() {
		writer.saveToDevice();
	}
	
}
